package javase.simple_factory.abstract_mode;

class SimpleFactoryDemo {
    public static void main(String[] args) {
        Person s = SimpleFactory.createObject("s");
        s.createObject();
        Person t = SimpleFactory.createObject("t");
        t.createObject();
    }
}
